package com.nari.ruist.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.nari.common.core.annotation.Excel;
import com.nari.common.core.web.domain.BaseEntity;

/**
 * 日志统计 对象 rst_logreport
 *
 * @author nari
 * @date 2021-04-02
 */
public class RstLogreport extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @Excel(name = "主键")
    private String id;

    /**
     * 日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cdate;

    /**
     * 接口编号
     */
    @Excel(name = "接口编号")
    private String tranId;

    /**
     * 总数
     */
    @Excel(name = "总数")
    private Long num;

    /**
     * 成功数
     */
    @Excel(name = "成功数")
    private Long success;

    /**
     * 失败数
     */
    @Excel(name = "失败数")
    private Long fail;

    /**
     * 补推成功数
     */
    @Excel(name = "补推成功数")
    private Long repair;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setCdate(Date cdate) {
        this.cdate = cdate;
    }

    public Date getCdate() {
        return cdate;
    }

    public void setTranId(String tranId) {
        this.tranId = tranId;
    }

    public String getTranId() {
        return tranId;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public Long getNum() {
        return num;
    }

    public void setSuccess(Long success) {
        this.success = success;
    }

    public Long getSuccess() {
        return success;
    }

    public void setFail(Long fail) {
        this.fail = fail;
    }

    public Long getFail() {
        return fail;
    }

    public void setRepair(Long repair) {
        this.repair = repair;
    }

    public Long getRepair() {
        return repair;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("cdate", getCdate())
                .append("tranId", getTranId())
                .append("num", getNum())
                .append("success", getSuccess())
                .append("fail", getFail())
                .append("repair", getRepair())
                .toString();
    }
}
